import { IsIn, IsString, IsOptional, IsArray } from 'class-validator';
import { UserRoles, UserStatus } from '@/enums/userEnums';

export class EditProfileDto {
    @IsOptional()
    @IsString()
    userId?: string = undefined;

    @IsOptional()
    @IsString()
    firstName?: string = undefined;

    @IsOptional()
    @IsString()
    lastName?: string = undefined;

    @IsOptional()
    @IsString()
    nickName?: string = undefined;

    @IsOptional()
    @IsString()
    phone?: string = undefined;

    @IsOptional()
    @IsString()
    about?: string = undefined;

    @IsOptional()
    @IsIn(Object.values(UserRoles))
    role?: number = undefined;

    @IsOptional()
    @IsIn(Object.values(UserStatus))
    status?: number = undefined;

    @IsOptional()
    @IsArray()
    photos?: string[] = undefined;
}